import { defHttp } from "@/utils/http";

// ERP 专科库存成本核算 API
export const invtDeptSpeApi = {
	// 获得专科库存成本核算分页
	invtDeptSpeList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-dept-spe/page`, params });
	},
	// 新增专科库存成本核算
	invtDeptSpeCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-dept-spe/create`, data });
	},

	// 修改专科库存成本核算
	invtDeptSpeUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-dept-spe/update`, data });
	},

	// 删除专科库存成本核算
	invtDeptSpeDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-dept-spe/delete?id=` + id });
	}
};
